package com.wx.uid.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author wangxun
 */
@Data
@ConfigurationProperties(prefix = "uid.datasource")
public class DataSourceProperties {

    private String driver;
    private String url;
    private String username;
    private String password;
    private Boolean defaultAutoCommit;
    private Integer initialSize;
    private Integer minIdle;
    private Integer maxWait;
    private Integer maxActive;
    private Boolean testWhileIdle;
    private Boolean testOnBorrow;
    private Boolean testOnReturn;
    private String validationQuery;
    private Integer timeBetweenEvictionRunsMillis;
    private Integer minEvictableIdleTimeMillis;
    private Boolean logAbandoned;
    private Boolean removeAbandoned;
    private Integer removeAbandonedTimeout;
    private String filters;
}
